from selenium.webdriver.common.by import By
order_on = None

app_login_me = By.XPATH, "//*[@text='我的']"
app_login_img = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/head_img']"
app_login_username = By.XPATH, "//*[@text='请输入账号']"
app_login_pwd = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/pwd_et']"
app_login_pro = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/agree_btn']"
app_login_btn = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/login_tv']"
app_login_nickname = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/nick_name_tv']"

app_order_home = By.XPATH, "//*[@text='首页']"
app_order_box = By.XPATH, "//*[@class='android.widget.EditText']"
app_order_xm = By.XPATH, "//*[@class='android.widget.EditText']"
app_order_search = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/search_btn']"
app_order_img = By.XPATH,  "//*[@resource-id='com.tpshop.malls:id/product_pic_img']"
app_order_add = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/add_cart_tv']"
app_order_fix = By.XPATH, "//*[@text='确定']"
app_order_car = By.XPATH, "//*[@text='购物车']"
app_order_buy = By.XPATH, "//*[@text='立即购买']"
app_order_submit = By.XPATH, "//*[@text='提交订单']"
app_order_pay = By.XPATH, "//*[@text='立即支付']"
app_order_paypwd = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/pwd_et']"
app_order_lastok = By.XPATH, "//*[@text='确定']"
app_order_no = By.XPATH, "//*[@resource-id='com.tpshop.malls:id/pay_trade_no_tv']"

# web登录
# 用户名
web_login_username = By.CSS_SELECTOR, "[name='username']"
# 密码
web_login_pwd = By.CSS_SELECTOR, "[name='password']"
# 验证码
web_login_verify = By.CSS_SELECTOR, "[name='vertify']"
# 登录按钮
web_login_submit = By.CSS_SELECTOR, "[name='submit']"
# 昵称
web_login_nickname = By.XPATH, "//*[text()='admin']"





# web订单处理
# 订单按钮点击
web_order_button = By.XPATH, "//a[text()='订单']"
# 点击发货单
web_order_goods = By.XPATH, "//a[text()='发货单']"
# 切换iframe
web_order_iframe = By.CSS_SELECTOR, "#workspace"
# 去发货
web_order_deliver = By.XPATH, "//a[text()='去发货']"
# 物流公司
web_order_company = By.CSS_SELECTOR, "[value='YZPY']"
# 配送单号
web_order_order_no = By.CSS_SELECTOR, "#invoice_no"
# 确认发货
web_order_goods_ok = By.CSS_SELECTOR, ".ncap-btn-send"
# 打印配置单
web_order_print_order = By.CSS_SELECTOR, ".fa-print"
# 获取订单编号
web_order_on = By.XPATH, "//div[@class='contact-info']/dl[1]/dd[2]"


